package cn.wgx.commons.security.shiro.token;

import org.apache.shiro.authc.UsernamePasswordToken;

/**
 * 用户和密码（包含验证码）令牌类
 * @author ThinkGem
 * @version 2013-5-19
 */
public class CustomUsernamePasswordToken extends UsernamePasswordToken {

	private static final long serialVersionUID = 1L;

	private int loginType = 1; //1:用户名登录,2:邮箱登录,3:手机号登录

	private int type = 3; //登录入口类型，教师登录，学生登录，管理员登录

	private String captcha;// 验证码
	
	public CustomUsernamePasswordToken() {
		super();
	}

	public CustomUsernamePasswordToken(String username, char[] password,
									   boolean rememberMe, String host,
                                       int loginType,
                                       String captcha) {
		super(username, password, rememberMe, host);
        this.loginType = loginType;
        this.captcha = captcha;
	}

    public int getLoginType() {
        return loginType;
    }

    public void setLoginType(int loginType) {
        this.loginType = loginType;
    }

    public String getCaptcha() {
        return captcha;
    }

    public void setCaptcha(String captcha) {
        this.captcha = captcha;
    }


}